import request from '@/router/axios'

export function fetchList(query) {
  return request({
    url: '/comm/sysNode/page',
    method: 'get',
    params: query
  })
}


export function putObj(obj) {
  return request({
    url: '/comm/sysNode/node',
    method: 'put',
    data: obj
  })
}

export function stop(id) {
  return request({
    url: '/comm/sysNode/stop/'+id,
    method: 'post'
  })
}
export function start(id) {
  return request({
    url: '/comm/sysNode/start/'+id,
    method: 'post'
  })
}
